<!DOCTYPE HTML>
<html>
<head>
<#include "WEB-INF/view/_frag/meta.ftl">
<#include "WEB-INF/view/_frag/jscss.ftl">
<title>添加角色</title>
</head>
<body>
<article class="page-container">
	<form id="form-add" class="form form-horizontal"  action="${basePath}/role/${ask}" method="post" enctype="multipart/form-data">
	<input type="hidden" name="ask" value="${ask}"/>
	<input type="hidden" name="role.role_id" value="${role.role_id}"/>
	 
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>角色名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="role.role_name" value="${role.role_name}">
			</div>
		</div>
	 
		<div class="row cl">
				<div class="text-r col-xs-2 col-sm-2 col-xs-offset-4 col-sm-offset-4">
					<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" />
				</div>
				<div class="text-l col-xs-2 col-sm-2">
					<input class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;返回&nbsp;&nbsp;" onclick="history.go(-1)" />
				</div>
			</div>
	</form>
</article>
<script type="text/javascript">
$(function(){
	 
	$("#form-add").validate({
		rules:{
			'role.role_name':{
				required:true,
				minlength:1,
				maxlength:16
			}
			
		}
	});
});
</script> 
</body>
</html>